#ifndef UTILITIES_RECTANGLE_H
#define UTILITIES_RECTANGLE_H

//#include <iostream>

#include "gdn/Rectangle.h"

namespace util
{
	template < typename T >
	bool RectangleContainsPoint( gdn::Rectangle< T > rect, gdn::Vector2< T > point )
	{
		if ( rect.x <= point.x and rect.y <= point.y and
		     rect.x + rect.width  >= point.x and
		     rect.y + rect.height >= point.y )
		{
			//std::cout << "RectangleContainsPoint true" << std::endl;
			return true;
		}
		//std::cout << "RectangleContainsPoint false" << std::endl;
		return false;
	}
}

#endif // UTILITIES_RECTANGLE_H
